package org.zh.sh.util.http;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestMapping {
    String value() default "/";

    HttpMethod method() default HttpMethod.POST;

    /*
     * @MediaType  类  定义请求内容类型，默认值为 "application/json"
     * */
    String consumes() default HttpStatic.APPLICATION_JSON_VALUE;

    /*
     * @MediaType  类   定义响应内容类型，默认值为 "application/json"
     * */
    String produces() default HttpStatic.APPLICATION_JSON_VALUE;
}
